﻿using CustomerDTO;
using J.CustomerModel;
using StatusDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CustomerService
{
    public interface ICustomerListService
    {
        /// <summary>
        /// 返回客户列表
        /// </summary>
        /// <returns></returns>
        Task<PageDto<CustomerList>> GetCustomerShow(CustomerShowDto customerDto);
        /// <summary>
        /// 客户详情
        /// </summary>
        /// <returns></returns>
        Task<CustomerList> CustomerDetail(int id);
        /// <summary>
        /// 客户添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<int> CustomerAdd(CustomerList model);
        /// <summary>
        /// 通过手机号查询
        /// </summary>
        /// <returns></returns>
        Task<List<CustomerList>> GetCustomer(string phone);
    }
}
